<template>
  父组件：提供数据<br>
  <childA></childA>
</template>

<script>
import { provide } from '@vue/runtime-core'

import childA from './childA.vue'
export default {
    components:{
        childA
    },
    setup () {
        const obj = {
            name: '小红书',
            age: 18
        }
        provide('info', obj)
    }
}
</script>

<style>

</style>